/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: Stereo
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2021/12/28 16:13
 * @version: 1.0
 */
public class Stereo {

    private static Stereo instance = new Stereo();

    public static Stereo getInstance(){
        return instance;
    }

    public void on(){
        System.out.println("Stereo on!");
    }

    public void  off(){
        System.out.println("Stereo off!");
    }

    public void up(){
        System.out.println("Stereo up");
    }
}
